import Index from '../Index/Index'
import Focus from '../Index/Focus'
import Recommend from '../Index/Recommend'
import Hot from '../Index/Hot'
import Idea from '../Idea'
import College from '../College'
import Food from '../Food/Food'
import FoodResult from '../Food/Result'
import RuiLayout from '../RuiXing/RuiLayout'
import RuiIndex from '../RuiXing/Index'
import Menu from '../RuiXing/Menu'
import Shop from '../RuiXing/Shop'
import HocComponent from '../Hoc'

const routes = [
    {
        from: '/',
        to: '/hoc/test'
    },
    {
        path: '/hoc/test',
        component: HocComponent
    },
    {
        path: '/ruixing',
        component: RuiLayout,
        children: [
            {
                path: '/ruixing/index',
                component: RuiIndex
            },
            {
                path: '/ruixing/menu',
                component: Menu
            },
            {
                path: '/ruixing/shop',
                component: Shop
            }
        ]
    },
    {
        path: '/result',
        component: FoodResult
    },
    {
        path: '/food',
        component: Food
    },
    
    {
        path: '/index',
        component: Index,
        children: [
            {
                from: '/index',
                to: '/index/focus'
            },
            {
                path: '/index/focus',
                component: Focus
            },
            {
                path: '/index/recommend',
                component: Recommend
            },
            {
                path: '/index/hot',
                component: Hot
            }
        ]
    },
    {
        path: '/idea',
        component: Idea
    },
    {
        path: '/college',
        component: College
    }
]
export default routes